package com.qd.pay.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 报文
 *
 * @author sjk
 */
@Getter
@Setter
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@TableName("sys_order_body")
public class OrderBody extends Model<OrderBody> implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;
    /**
     * 业务ID
     */
    @TableField("bid")
    private String bid;
    /**
     * 内容
     */
    @TableField("content")
    private String content;
    /**
     * 类型:order订单 order_report回执 order_refund退款 order_close关闭订单
     */
    @TableField("type")
    private String type;
    /**
     * 添加时间
     */
    @TableField("add_time")
    private LocalDateTime addTime;

    public void freeData() {
        this.id = null;
        this.bid = null;
        this.content = null;
        this.type = null;
        this.addTime = null;
    }

}
